<template>
  <div class="test-layout">
    <div class="header">
      <h1>布局测试页面</h1>
      <p>这个页面用于测试修复后的布局是否正确</p>
    </div>
    
    <div class="content">
      <div class="card">
        <h3>测试卡片 1</h3>
        <p>这是第一个测试卡片，用于验证布局修复。</p>
      </div>
      
      <div class="card">
        <h3>测试卡片 2</h3>
        <p>这是第二个测试卡片，用于验证布局修复。</p>
      </div>
      
      <div class="card">
        <h3>测试卡片 3</h3>
        <p>这是第三个测试卡片，用于验证布局修复。</p>
      </div>
    </div>
    
    <div class="footer">
      <p>页面底部 - 布局测试完成</p>
    </div>
  </div>
</template>

<script setup lang="ts">
// 测试页面组件
</script>

<style scoped>
.test-layout {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  text-align: center;
  flex-shrink: 0;
}

.header h1 {
  margin: 0 0 10px 0;
  font-size: 28px;
}

.header p {
  margin: 0;
  opacity: 0.9;
}

.content {
  flex: 1;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  overflow-y: auto;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.footer {
  background: #f8f9fa;
  padding: 15px;
  text-align: center;
  color: #666;
  border-top: 1px solid #e9ecef;
  flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .content {
    grid-template-columns: 1fr;
    padding: 15px;
  }
  
  .header h1 {
    font-size: 24px;
  }
}
</style>

